﻿using System.Collections.Generic;

namespace RXY_Mall.Domain.Rxy
{
    #region order
    /// <summary>
    /// 订单
    /// </summary>
    public class RxyOrderHeadModel
    {
        /// <summary>
        /// 商城订单号
        /// </summary>
        public string order_no { get; set; }
        /// <summary>
        /// 对接公司编号
        /// </summary>
        public string api_company_id { get; set; }
        /// <summary>
        /// 对接店铺编号
        /// </summary>
        public string api_shop_id { get; set; }
        /// <summary>
        /// 支付方式  1-余额支付 2-微信App支付 3-支付宝支付 4-微信公众号支付 10-货到付款
        /// </summary>
        public int pay_type { get; set; }
        /// <summary>
        /// 支付状态 2-已支付 5-未支付
        /// </summary>
        public string pay_status { get; set; }
        /// <summary>
        /// 订单状态 1-待付款 4-待发货 5-待收货 10-完成 20-取消
        /// </summary>
        public byte order_status { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal total_amount { get; set; }
        /// <summary>
        /// 运费
        /// </summary>
        public decimal shipping_fee { get; set; }
        /// <summary>
        /// 商品优惠
        /// </summary>
        public decimal discounts { get; set; }
        /// <summary>
        /// 付款金额
        /// </summary>
        public decimal pay_amount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 商品
        /// </summary>
        public List<RxyMallOrderDetailModel> rxyMallOrderDetailList;
        /// <summary>
        /// 收货人
        /// </summary>
        public RxyMallCustomerModel rxyMallCustomerModel;
    }
    /// <summary>
    /// 订单商品
    /// </summary>
    public class RxyMallOrderDetailModel
    {
        /// <summary>
        /// 对接商品ID
        /// </summary>
        public string api_goods_id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goods_name { get; set; }
        /// <summary>
        /// 是否赠品 Y是赠品 N不是赠品
        /// </summary>
        public string is_largess { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int quantity { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal price { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal total_amount { get; set; }
        /// <summary>
        /// 转换比
        /// </summary>
        public int conversion_rate { get; set; }
        /// <summary>
        /// 单位 S-小单位 M-中单位 L-大单位
        /// </summary>
        public string api_unit { get; set; }
        /// <summary>
        /// 单位名称(件、瓶、箱等)
        /// </summary>
        public string unit_name { get; set; }
    }
    /// <summary>
    /// 订单地址
    /// </summary>
    public class RxyMallCustomerModel
    {
        /// <summary>
        /// 公司ID
        /// </summary>
        public string api_company_id { get; set; }
        /// <summary>
        /// 门店ID 如果是第一次传 没有id 不需要传
        /// </summary>
        public string api_user_id { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 门店名称
        /// </summary>
        public string store_name { get; set; }
        /// <summary>
        /// 门店类型
        /// </summary>
        public byte store_type { get; set; }
        /// <summary>
        /// 收货人
        /// </summary>
        public string accepter_name { get; set; }
        /// <summary>
        /// 收货所在地区
        /// </summary>
        public string area { get; set; }
        /// <summary>
        /// 收货详细地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 省级国标码
        /// </summary>
        public string province_code { get; set; }
        /// <summary>
        /// 市级国标码
        /// </summary>
        public string city_code { get; set; }
        /// <summary>
        /// 区级国标码
        /// </summary>
        public string country_code { get; set; }
    }
    #endregion

}
